﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;
namespace DC.DCHierarchy.DCResolvers
{
    [DataContract]
    public class Contact 
    {
        [DataMember]
        public string FirstName { get; set; }
        [DataMember]
        public string LastName { get; set; }
        [DataMember]
        public string PhoneNumber { get; set; }
        [DataMember]
        public string CarNumber { get; set; }
    }

    [DataContract]
    public class Customer : Contact
    {
        public string CompanyName { get; set; }
    }

    [ServiceContract]
    public interface IContract
    {
        [OperationContract]
        string AddContact(Contact contact);

        [OperationContract]
        string AddCustomer(Customer customer);
    }
}
